var router = require('koa-router')();


router.get('/', async function (ctx, next) {
  ctx.state = {
    title: 'koa2 title1'
  };
  await ctx.render('index', {
  });
})
router.get('/test', async function (ctx, next) {
  ctx.state = {
    title: 'koa2 title1 test'
  };
  console.log("ok")
  await ctx.render('test', {
  });
})
module.exports = router;
